package com.software.human.entity;



import java.io.Serializable;
import java.util.Date;
import java.util.Objects;


public class UserInfo implements Serializable {

    private String userId;
    private String userName;
    private String sex;
    private Date birthday;
    private Integer height;
    private Float weight;

    public UserInfo() {
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public Integer getHeight() {
        return height;
    }

    public void setHeight(Integer height) {
        this.height = height;
    }

    public Float getWeight() {
        return weight;
    }

    public void setWeight(Float weight) {
        this.weight = weight;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        UserInfo userInfo = (UserInfo) o;
        return Objects.equals(userId, userInfo.userId) && Objects.equals(userName, userInfo.userName) && Objects.equals(sex, userInfo.sex) && Objects.equals(birthday, userInfo.birthday) && Objects.equals(height, userInfo.height) && Objects.equals(weight, userInfo.weight);
    }

    @Override
    public int hashCode() {
        return Objects.hash(userId, userName, sex, birthday, height, weight);
    }
}
